Skip to content

Conversation

@krishvishal
Copy link
Contributor

This PR fixes incorrect conversion from TEXT to INTEGER when text is a number followed by a trailing non-breaking space.

This happens because str::trim() trims non-breaking space and unicode whitespace while SQLite only trims ASCII whitespace.

Closes: #3679

whitespace too. While SQLite only removes ASCII whitespace.

Closes: tursodatabase#3679
@krishvishal
Copy link
Contributor Author

Thinking about if I should replace str::trim() in cast_* functions in util.rs.

@nyrkio
Copy link

nyrkio bot commented Nov 1, 2025

Nyrkiö Report for Commit: 01d8456

No performance changes detected.
Remember that Nyrkiö results become more precise when more commits are merged.
So please check again in a few days.

Nyrkiö 0 changes / 137 tests & 309 metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect conversion from TEXT to INTEGER when text is a number followed by a trailing non-breaking space

2 participants